package com.education.music.activity;

import android.graphics.Path;
import android.graphics.PointF;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;

import com.education.music.R;
import com.education.music.adapter.OnLineAdapter;
import com.education.music.entity.OnLineDes;
import com.education.music.http.HttpDownloader;

import java.util.ArrayList;
import java.util.List;

public class OnlineActivity extends AppCompatActivity {

    private ListView mListView;
    private OnLineAdapter mAdapter;
    private List<OnLineDes> mList = new ArrayList<>();


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_online);
        mListView = findViewById(R.id.list_online);
        mList.add(new OnLineDes("绿色",
                "http://m7.music.126.net/20190426113331/eecd8d57711794d504018c018b461e5e/ymusic/76b4/dcbb/0a65/9198b18815ee8ce42ae368ae29276f78.mp3",
                "陈雪凝",
                "2019年04月23日16:42:02"));
        mList.add(new OnLineDes("我曾",
                "http://100.100.100.100:8081/IXC9c5ada3412cbfbd8707a81a1b054286f_182.48.102.226/20190423170713/15d25442d3fb708921b25ca1810c2d3d/ymusic/525d/540b/510f/e7403c0f89ca574eea7dfea2ac7601f5.mp3",
                "隔壁老樊",
                "创建时间"));
        mList.add(new OnLineDes("多想在平庸的生活拥抱你",
                "http://100.100.100.101:8081/IXC51550a55e3923169fd94fefafe95e311_182.48.102.226/20190424103406/e222c0ac4ec6f337d4d58cafc8d2e07f/ymusic/918c/1958/7d87/022d7d76c923b1caaca6e30ca47d0f69.mp3",
                "隔壁老樊",
                "2019年04月23日16:44:25"));
        mList.add(new OnLineDes("只是太爱你",
                "http://100.100.100.101:8081/IXC5f84dce8175121d54d3abf5a1341f7f9_182.48.102.227/20190424102828/4c62a3728b3233fb26193083dd2d18ee/ymusic/4459/9a30/a687/a565fbd68eb10453a81575539f55ffec.mp3",
                "张敬轩",
                "2019年04月24日10:07:13"));
        mList.add(new OnLineDes("告白の夜",
                "http://100.100.100.100:8081/IXC6312b83590b1f77aa56354c3d4a75293_182.48.102.226/20190424103027/4b4dd81e788ea2ed6fe8134f74791154/ymusic/035f/0e09/565d/454562789e9c0e70fcf4a74d46155bd6.mp3",
                "Ayasa绚沙",
                "2019年04月24日10:07:15"));
        mList.add(new OnLineDes("你的酒馆对我打了样",
                "http://100.100.100.101:8081/IXC46a3a010ff233023180d43fb9efc6742_182.48.102.228/20190424103156/209a92e82fe9f2684e456073d5ac2e5c/ymusic/8282/098a/d744/be1e1d3c2a46b4cbd259aca7ff050cd3.mp3",
                "陈雪凝",
                "2019年04月24日10:07:18"));
        mList.add(new OnLineDes("Monsters",
                "http://100.100.100.101:8081/IXCbdb9660f4ebde1f7e69eecfcb79b6b2a_182.48.102.228/20190424103246/72f9ffdedf148463a68c2f374681dac8/ymusic/1464/109b/9468/3f56ace1a847b1e7ef2084c8c049740a.mp3",
                "Katie Sky",
                "2019年04月24日10:07:20"));
        mList.add(new OnLineDes("关于孤独我想说的话",
                "http://100.100.100.101:8081/IXC13d3a060971b64ccfe1a581bd2f9b337_182.48.102.227/20190424103321/fd8bd88de7a519cc771d6ac6db3d6a6e/ymusic/030e/010f/005c/4d4d12c78b6ecaebd51b7694045e93ed.mp3",
                "隔壁老樊",
                "2019年04月24日10:07:21"));

        mAdapter = new OnLineAdapter(this, mList);
        mListView.setAdapter(mAdapter);


    }
}
